package cn.peach.order.domain;


import cn.peach.basic.domain.BaseDomain;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 宠物购买的订单
 */
@Data
public class OrderPet extends BaseDomain {
    // 0.下单成功待支付 ，
    public static final int STATE_WAIT_PAY = 0;
    // 1.支付成功待发货
    public static final int STATE_SUCCESS_PAY = 1;
    // 2.用户取消订单
    public static final int STATE_USER_CANCEL = 2;
    // 3.订单超时自动取消
    public static final int STATE_PAY_OUTTIME_CANCEL = 3;
    // 4.支付失败
    public static final int STATE_PAY_FAIL = 4;
    // 5.已经发货
    public static final int STATE_DELIVERY_SUCCESS = 5;
    // 6.确认收货,订单关闭
    public static final int STATE_USER_CONFIRM = 6;

    // 银联支付
    public static final int PAY_TYPE_BANK= 1;
    // 微信支付
    public static final int PAY_TYPE_WECHAT= 2;
    // 支付宝支付
    public static final int PAY_TYPE_ALIPAY= 3;

    // 备注
   private String digest;
   // 状态
   private Integer state = STATE_WAIT_PAY;
   // 价格
   private BigDecimal totalPrice;
   private Integer totalCount;
   // 订单号
   private String orderSn;
   private Date lastUpdateTime;
   // 支付超时时间
   private Date payExpireTime;
   private Long userId;
   private Date createTime;
   private Integer payType;
}
